﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Admin.Core.DbModel.sys/sys_dict 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       sys_dict
* 创建时间：  2025/6/4 10:37:22
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using SSPivot.Data.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Admin.Core.DbModel.sys
{
    /// <summary>
    /// 数据字典
    /// </summary>
    public class sys_dict : FullAuditedEntity<long>
    {
        /// <summary>
        /// 字典类型Id
        /// </summary>

        public long DictTypeId { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 字典编码
        /// </summary>
        [StringLength(50)]
        public string? Code { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [StringLength(50)]
        public string? Value { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [StringLength(50)]
        public string? Description { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; } = true;

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        [ForeignKey("DictTypeId")]
        public virtual sys_dict_type DictType { get; set; }
    }
}
